package com.gong.chooselesson.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

/**
 * @Description
 * @Author gongchang
 * @Date 2021-07-28 16:30
 */
@Configuration
public class BeanConfig {

    @Bean
    public Jedis readJedis(){
        return new Jedis("192.168.1.133");
    }

    @Bean
    public Jedis writeJedis(){
        return new Jedis("192.168.1.133");
    }
}
